#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 30 avr. 2011

@author: alinehuf

this file contains only the fixed data (dimensions, styles) 
used in all classes of the GUI
'''
# ============================== CONSTANTS ===============================
# ========================================================================
class UiDimension() :
    def __init__(self):
        self.imagesPath = "UI/images/"
        self.imagesTerrains = {"niveau1" : "niveau1.svg",
                               "niveau2" : "niveau2.svg"}
        # images proportions by number of tailleCase
        self.imagesPersonagesWidth = 5
        self.imagesPersonagesHeight = 4
        self.imagesPersonagesOffsetX = -2
        self.imagesPersonagesOffsetY = -2
        self.imagesPersonages = {"Asura"  : {"right" : "asuraRight.svg",
                                             "left" : "asuraBackLeft.svg",
                                             "dead" : "asuraDead.svg"},
                                 "Rankor" : {"right" : "rankorRight.svg",
                                             "left" : "rankorLeft.svg",
                                             "dead" : "rankorDead.svg"},
                                 "Mantas" : {"right" : "mantasRight.svg",
                                             "left" : "mantasLeft.svg",
                                             "dead" : "mantasDead.svg"},
                                 "Shu"    : {"right" : "shuRight.svg",
                                             "left" : "shuLeft.svg",
                                             "dead" : "shuDead.svg"} }
        self.fenetreW = 1000
        self.fenetreH = 650
        self.menuW = 400
        self.menuH = 300
        self.uiTourHeight = 160
        self.uiTourWidth = 200
        self.UiZonesHeight = 220
        self.styleZones = "QWidget { background-color: #DDD; \
                                     border: 1px solid #333; \
                                     margin: 2px; }"
        self.TitreMarginLeft = 30
        self.styleZonesTitre = "QWidget { font-weight: bold; \
                                          margin-top: 10px; \
                                          margin-left: %spx; \
                                        }" % self.TitreMarginLeft
        self.TexteMarginTop = 30
        self.TexteHeight = 30
        self.TexteMarginLeft = 20
        self.styleZonesTexte = "QWidget { margin-top: 30px; \
                                          margin-left: %spx; \
                                        }" % self.TexteMarginLeft
        self.EtiquettesWidth = 160
        self.styleZonesEtiquettes = "QWidget { margin-top: 30px; \
                                               margin-left: %spx; \
                                               font-style: italic; \
                                             }" % self.TexteMarginLeft
        # styles that can be mix in a QWidget { ... } expression
        self.styleCaseUnSelected = "border: 1px dashed #AAA;"
        self.styleCaseSelected = "border: 1px solid #F00;"
        self.styleCaseReachable = "background-color: rgba(0, 255, 0, 75);"
        self.styleCaseTarget = "background-color: rgba(255, 0, 0, 75);"
        self.styleCaseUnHighlight = "background-color: transparent;"
# ========================================================================
# ========================================================================
